import { useState } from 'react';

export default function useGlobalModel() {
  const [layoutLoading, setLayoutLoading] = useState(false);
  const [pageLoading, setPageLoading] = useState(false);
  const [breadcrumb, setBreadcrumb] = useState('');
  return {
    layoutLoading,
    setLayoutLoading,
    pageLoading,
    setPageLoading,
    breadcrumb,
    setBreadcrumb,
  };
}